<!DOCTYPE html>

<html>
    <head>
        <meta charset="UTF-8">
        <title>BOM: navigator</title>
    </head>
    <body>

        <p>Browser Object Model : screen 和 Navigator</p>
        <script type="text/javascript">
            console.log( Object.getOwnPropertyNames( Navigator ) );
            console.log( '- '.repeat(30) );
            console.log( Object.getOwnPropertyNames( Navigator.prototype ) );
            console.log( '- '.repeat(30) );
            // 在浏览器中 navigator 是 Navigator 对象的实例
            console.log( Object.getOwnPropertyNames( navigator ) );
        </script>

        <p>
            <a href="https://developer.mozilla.org/zh-CN/docs/Web/API/Navigator">
                MDN Web Docs: Navigator
            </a>
        </p>
    </body>
</html>